package org.qiuqiu.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.qiuqiu.vo.PaginationVO;
import org.qiuqiu.vo.Post;
import org.qiuqiu.vo.PostExample;
import org.qiuqiu.vo.User;

public interface PostService {
	
    int countByExample(PostExample example);
    List<Post> selectPageByAll( PaginationVO page, Post post);
    int updateRe(@Param("postid") Integer postid);
    int deleteByExample(PostExample example);

    int deleteByPrimaryKey(Integer postid);

   
    int insert(Post record);

    
    int insertSelective(Post record);

    
    List<Post> selectByExample(PostExample example);

    
    Post selectByPrimaryKey(Integer postid);

    
    int updateByExampleSelective(@Param("record") Post record, @Param("example") PostExample example);

    
    int updateByExample(@Param("record") Post record, @Param("example") PostExample example);

    
    int updateByPrimaryKeySelective(Post record);

    
    int updateByPrimaryKey(Post record);
    List<Post> findAllPostByUser(@Param("user")User user,@Param("page")PaginationVO page);
    int countPostByUser(@Param("user")User user);
    List<Post> findallClickandInfo(@Param("page") PaginationVO page);
    int totalInfo();
}
